//
//  GHSStockBottomView.m
//  penzer
//
//  Created by 还带大道 on 2018/11/20.
//  Copyright © 2018年 caiyc. All rights reserved.
//

#import "GHSStockBottomView.h"

@interface GHSStockBottomView()
@property (weak, nonatomic) IBOutlet UIView *contentV;

@end

@implementation GHSStockBottomView

+ (instancetype)shareView
{
    return [[NSBundle mainBundle] loadNibNamed:NSStringFromClass([self class]) owner:nil options:nil].lastObject;
}


- (void)awakeFromNib
{
    [super awakeFromNib];
    self.contentV.backgroundColor = [UIColor whiteColor];
    self.leftBtn.layer.cornerRadius = self.leftBtn.height*0.5;
    self.rightBtn.layer.cornerRadius = self.rightBtn.height*0.5;
}


- (IBAction)allBtnOnClick:(UIButton *)btn {
    btn.selected = !btn.isSelected;
    !self.onClickAllBlock?:self.onClickAllBlock(btn.selected);
}

- (IBAction)leftBtnOnClick {
    !self.onClickLeftItemBlock?:self.onClickLeftItemBlock();
}

- (IBAction)rightBtnOnClick {
    !self.onClickRightItemBlock?:self.onClickRightItemBlock();
}

@end
